import type { ChatQueryType } from "~type/chatType"
import { request } from "~util/request"

export function openAIChatApi(data: ChatQueryType) {
  return request.post("https://api.openai.com/v1/chat/completions", {
    json: data
  })
}
